package com.example.androideventdistribution.page1

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.androideventdistribution.R
import com.example.androideventdistribution.databinding.ActivityRecyclerView2ScrollBinding

class RecyclerView2ScrollActivity : AppCompatActivity() {
    lateinit var mBinding: ActivityRecyclerView2ScrollBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mBinding = ActivityRecyclerView2ScrollBinding.inflate(layoutInflater)
        setContentView(mBinding.root)
        val list = mutableListOf<OuterItem>()
        for (i in 0 until 10) {
            list.add(OuterItem())
        }
        mBinding.outerRecyclerView.layoutManager = LinearLayoutManager(this)
        mBinding.outerRecyclerView.adapter = OuterRecyclerViewAdapter(list)

    }
}